package com.dss.sdk.base;

import java.io.Serializable;
import java.util.Map;

/**
 * @author Fadada
 * 2021/9/8 16:09:38
 */
public class BaseBean implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 返回代码
     */
    private String code;
    /**
     * 结果状态
     */
    private boolean success;
    /**
     * 消息提示
     */
    private String message;
    private String path;
    private long timestamp;
    /**
     * 附加数据
     */
    private Map<String, Object> extra;

    //****************额外参数***************
    /**
     * API响应JSON
     */
    private String body;
    /**
     * API请求参数列表
     */
    private Map<String, Object> params;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public Map<String, Object> getExtra() {
        return extra;
    }

    public void setExtra(Map<String, Object> extra) {
        this.extra = extra;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public Map<String, Object> getParams() {
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }
}
